<script>
function abc(){
 var name=document.getElementById('search_key');
 name.className="ipt12";
}
function cc(x){
 var name=document.getElementById("con_five_"+x);
 var list=document.getElementById("five"+x);
 name.style.display="none";
 list.className="";
}
function setTab(name,cursel,n){
 for(i=1;i<=n;i++){
  var menu=document.getElementById(name+i);
  var con=document.getElementById("con_"+name+"_"+i);
  menu.className=i==cursel?"hover":"";
  con.style.display=i==cursel?"block":"none";
 }
}

</script>
<!--303页面-->
  <div class="main">
     <div class="left">
          <?php
            @include_component("system","menuNavigator",array("catalogId"=>$catalogId,"subCatalogId"=>3,"type"=>3,"cssStr"=>"address_tit address_tit301"));
            echo "<div class=\"abcd\">";
            echo link_to("A","celebrity/list?catalogId=".$catalogId."&link=A",($link==A?"style='text-decoration:none;'":""))
                 .link_to("B","celebrity/list?catalogId=".$catalogId."&link=B",($link==B?"style='text-decoration:none;'":""))
                 .link_to("C","celebrity/list?catalogId=".$catalogId."&link=C",($link==C?"style='text-decoration:none;'":""))
                 .link_to("D","celebrity/list?catalogId=".$catalogId."&link=D",($link==D?"style='text-decoration:none;'":""))
                 .link_to("E","celebrity/list?catalogId=".$catalogId."&link=E",($link==E?"style='text-decoration:none;'":""))
                 .link_to("F","celebrity/list?catalogId=".$catalogId."&link=F",($link==F?"style='text-decoration:none;'":""))
                 .link_to("G","celebrity/list?catalogId=".$catalogId."&link=G",($link==G?"style='text-decoration:none;'":""))
                 .link_to("H","celebrity/list?catalogId=".$catalogId."&link=H",($link==H?"style='text-decoration:none;'":""))
                 .link_to("I","celebrity/list?catalogId=".$catalogId."&link=I",($link==I?"style='text-decoration:none;'":""))
                 .link_to("J","celebrity/list?catalogId=".$catalogId."&link=J",($link==J?"style='text-decoration:none;'":""))
                 .link_to("K","celebrity/list?catalogId=".$catalogId."&link=K",($link==K?"style='text-decoration:none;'":""))
                 .link_to("L","celebrity/list?catalogId=".$catalogId."&link=L",($link==L?"style='text-decoration:none;'":""))
                 .link_to("M","celebrity/list?catalogId=".$catalogId."&link=M",($link==M?"style='text-decoration:none;'":""))
                 .link_to("N","celebrity/list?catalogId=".$catalogId."&link=N",($link==N?"style='text-decoration:none;'":""))
                 .link_to("O","celebrity/list?catalogId=".$catalogId."&link=O",($link==O?"style='text-decoration:none;'":""))
                 .link_to("P","celebrity/list?catalogId=".$catalogId."&link=P",($link==P?"style='text-decoration:none;'":""))
                 .link_to("Q","celebrity/list?catalogId=".$catalogId."&link=Q",($link==Q?"style='text-decoration:none;'":""))
                 .link_to("R","celebrity/list?catalogId=".$catalogId."&link=R",($link==R?"style='text-decoration:none;'":""))
                 .link_to("S","celebrity/list?catalogId=".$catalogId."&link=S",($link==S?"style='text-decoration:none;'":""))
                 .link_to("T","celebrity/list?catalogId=".$catalogId."&link=T",($link==T?"style='text-decoration:none;'":""))
                 .link_to("U","celebrity/list?catalogId=".$catalogId."&link=U",($link==U?"style='text-decoration:none;'":""))
                 .link_to("V","celebrity/list?catalogId=".$catalogId."&link=V",($link==V?"style='text-decoration:none;'":""))
                 .link_to("W","celebrity/list?catalogId=".$catalogId."&link=W",($link==W?"style='text-decoration:none;'":""))
                 .link_to("X","celebrity/list?catalogId=".$catalogId."&link=X",($link==X?"style='text-decoration:none;'":""))
                 .link_to("Y","celebrity/list?catalogId=".$catalogId."&link=Y",($link==Y?"style='text-decoration:none;'":""))
                 .link_to("Z","celebrity/list?catalogId=".$catalogId."&link=Z",($link==Z?"style='text-decoration:none;'":""))
                 .link_to("其他明星","celebrity/list?catalogId=".$catalogId."&link=ot",($link=='ot'?"style='text-decoration:none;'":""));
          ?>
         </div>
    <div class="star_list">
    <?php
        use_helper("users");
         $celebritys = @$pages->getResults();
           foreach($celebritys as $row=>$celebrity)
           {
               echo "<div class='star_box'>".link_to("<img src='".$celebrity->getSnapshot_big()."'  />","celebrity/detail?celebrityId=".$celebrity->getCelebrity_id(),"target='_blank'")."
            <h3>".link_to($celebrity->getName(),"celebrity/detail?celebrityId=".$celebrity->getCelebrity_id(),"target='_blank'")
            ."</h3>
            </div>";
            //catalogId=".$catalogId."&
           }
           $numPages= $pages->getLastPage();
           $CurrentPageID=$pages->getPage();
             if(@$pages->haveToPaginate())
			{
				$str=$CurrentPageID-6;
				$end=$CurrentPageID+5;
				if($str<0)
					$str=0;
				if($end>$numPages)
					$end=$numPages;
				echo "<div class='page_list'>";
				if($CurrentPageID>1)
					echo link_to("上一页","celebrity/list?catalogId=".$catalogId."&link=".$link."&currentPage=".($CurrentPageID-1),"");
				 for($i=$str;$i<$end;$i++)
				 {
					if($i==($CurrentPageID-1)){
					echo "<a class='now02' href='#'>".($i+1)."</a>";}
					else{
					    echo link_to(($i+1),"celebrity/list?catalogId=".$catalogId."&link=".$link."&currentPage=".($i+1),"");
                    }
				 }
				 if($CurrentPageID<$numPages)
				 echo link_to("下一页","celebrity/list?catalogId=".$catalogId."&link=".$link."&currentPage=".($CurrentPageID+1),"");
				 echo "</div>";
			}
    ?>

        
           <!--<div class="page_list">上一页 <a class="now02" href="#">1</a><a href="#">2</a><a href="#">3</a><a href="#">4</a><a href="#">5</a> 下一页</div>-->
         </div>
   <!--#视频列表开始-->
     </div>
     <!--左侧结束 右侧开始-->
     <div class="right">
         <?php
            @include_component('other','advertise'); //广告
            @include_component('celebrity','recommend',array('recordCount'=>'8'));//百科列表
            @include_component('news','hotlink',array('recordCount'=>5));//热门点击
            @include_component('video','hotlink',array('recordCount'=>10,'catalogId'=>$catalogId,'period'=>''));//最热视频
         ?>
     </div>
  </div>